package com.alibaba.dubbo.demo.provider;

import java.util.List;

import com.alibaba.dubbo.demo.SysRoleFuncInterface;
import com.alibaba.dubbo.demo.bean.PageBean;
import com.alibaba.dubbo.demo.bean.SysRoleFunc;
import com.alibaba.dubbo.demo.provider.dao.impl.SysRoleFuncDaoImpl;

public class SysRoleFuncServiceImpl implements SysRoleFuncInterface {

	SysRoleFuncDaoImpl sysRoleFuncDao;
	
	public SysRoleFuncDaoImpl getSysRoleFuncDao() {
		return sysRoleFuncDao;
	}

	public void setSysRoleFuncDao(SysRoleFuncDaoImpl sysRoleFuncDao) {
		this.sysRoleFuncDao = sysRoleFuncDao;
	}

	@Override
	public PageBean queryAllSysRoleFunc(PageBean pageBean, String rolecode, String func) {
		// TODO Auto-generated method stub
		return sysRoleFuncDao.queryAllSysRoleFunc(pageBean, rolecode, func);
	}

	@Override
	public List<SysRoleFunc> queryAllSysRoleFuncList(String rolecode) {
		// TODO Auto-generated method stub
		return sysRoleFuncDao.queryAllSysRoleFuncList(rolecode);
	}

	@Override
	public List<SysRoleFunc> queryAllSysRoleFuncList(int roleid) {
		// TODO Auto-generated method stub
		return sysRoleFuncDao.queryAllSysRoleFuncList(roleid);
	}

	@Override
	public SysRoleFunc queryOneSysRoleFunc(int id) {
		// TODO Auto-generated method stub
		return sysRoleFuncDao.queryOneSysRoleFunc(id);
	}

	@Override
	public boolean saveSysRoleFunc(SysRoleFunc sysRoleFunc) {
		// TODO Auto-generated method stub
		return sysRoleFuncDao.saveSysRoleFunc(sysRoleFunc);
	}

	@Override
	public boolean updateSysRoleFunc(SysRoleFunc sysRoleFunc) {
		// TODO Auto-generated method stub
		return sysRoleFuncDao.updateSysRoleFunc(sysRoleFunc);
	}

	@Override
	public boolean deleteSysRoleFunc(int id) {
		// TODO Auto-generated method stub
		return sysRoleFuncDao.deleteSysRoleFunc(id);
	}

	@Override
	public boolean updateSysRoleFuncs(int roleid, String funclist) {
		// TODO Auto-generated method stub
		return sysRoleFuncDao.updateSysRoleFuncs(roleid, funclist);
	}

}
